package PageOR;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;

public class FlightConfirmation 
{
	WebDriver driver;
	
	@FindBy(how = How.XPATH, using = "//body/div[1]/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr[1]/td[2]/table/tbody/tr[5]/td/table/tbody/tr[1]/td/table/tbody/tr/td[1]/b/font/font/b/font[1]")
	public WebElement elem_TikcetConfirmationNumber;
	
	@FindBy(how = How.XPATH, using = "//img[@src='/images/forms/Logout.gif']")
	public WebElement btn_LogOut;
	
	public FlightConfirmation(WebDriver driver)
	{
		this.driver=driver;
	}
	
	public boolean func_GetTicketConfirmationNumber()
	{
		System.out.println("Ticket Confirmation Number" + elem_TikcetConfirmationNumber.getText());
		System.out.println("func_GetTicketConfirmationNumber Completed");
		return true;
	}
	
	public boolean func_LogOut()
	{
		btn_LogOut.click();
		return true;
	}
	
}
